<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<!--author: AGolubinskyy -->
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title>TODO supply a title</title>
    </h:head>
    <h:body>

        <ui:component>
            <h:form>
                <div align="right" class="header">
                    <c:if test="#{loginBean.logedIn}">
                        <h:panelGroup layout="block">
                        <h:outputText value="Welcome back, #{loginBean.name}. | "/>
                        <h:commandLink action="#{loginBean.getRole()}" >Dashboard</h:commandLink>
                        <h:outputText value=" | "/>
                        <h:commandLink action="#{loginBean.logout()}" >Log out</h:commandLink>
                        </h:panelGroup>
                    </c:if>
                </div>
            </h:form>
        </ui:component>

    </h:body>
</html>
